﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace AppRPG.PhysObject
{
	public class ObjectsManager
	{
		private readonly List<PhysObject> _physObjects;
		
		public ObjectsManager()
		{
			_physObjects = new List<PhysObject>();
		}
		
		public void Update(float deltaTime)
		{
			foreach (PhysObject physObject in _physObjects)
			{
				physObject.Update(deltaTime);
			}
		}
		
		public void Draw(Graphics graphcis)
		{
			foreach (PhysObject physObject in _physObjects)
			{
				physObject.Draw(graphcis);
			}
		}
	}
}
